benchmark-markdown:
  extends:
    - .single-db-ci-connection
    - .rails-job-base
    - .use-pg14
    - .benchmark:rules:benchmark-markdown
  stage: benchmark
  needs:
    - setup-test-env
  script:
    - section_start "gitaly-test-spawn" "Spawning Gitaly"; scripts/gitaly-test-spawn; section_end "gitaly-test-spawn";  # Do not use 'bundle exec' here
    - bundle exec rake benchmark:banzai &> benchmark-markdown.txt
  artifacts:
    expire_in: 30 days
    when: always
    paths:
      - benchmark-markdown.txt
  allow_failure: true
